import App from './App'
import uView from '@/uni_modules/uview-ui'
import VueI18n from 'vue-i18n'// v8.x
import ice from './libs/ice.js'
import en from './locale/en.json'
import zh from './locale/zh-Hans.json'
Vue.use(uView)
Vue.use(VueI18n)
Vue.use(ice)
const messages = {
	'en':en,
	'zh-Hans': zh
}
let i18nConfig = {
  locale: uni.getLocale(),
  messages
}
const i18n = new VueI18n(i18nConfig)
ice.lang = i18n
uni.$ice = ice
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	i18n,
  ...App
})
app.$mount()
